package cn.edu.scau.cmi.chenyipeng.Adapter;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

public class SortUtil {
	
	public List<Integer> idSort(List<Integer> idList) {
		idList.sort(Comparators.ID);
		return idList;
	}
	
	private static class Comparators {
		public static Comparator<Integer> ID = new Comparator<Integer>(){
			public int compare(Integer o1, Integer o2) {
				return o1 - o2;
			}
		};
	}
}
